package cmd

import "github.com/spf13/cobra"

func AllGitSubCommands() []*cobra.Command {
	return []*cobra.Command{
		{Use: "add", Short: "将文件内容添加到索引"},
		{Use: "am", Short: "从邮箱应用补丁序列"},
		{Use: "archive", Short: "从一个命名的树中创建一个文件档案"},
		{Use: "branch", Short: "列出、创建或删除分支"},
		{Use: "bisect", Short: "使用二进制搜索来查找引入bug的提交"},
		{Use: "bundle", Short: "按档案移动对象和参考资料"},
		{Use: "commit", Short: "记录对存储库的更改"},
		{Use: "clone", Short: "克隆一个版本库到一个新的目录"},
		{Use: "checkout", Short: "切换分支或恢复工作树文件"},
		{Use: "fetch", Short: "从其他资源库下载对象和参考资料"},
		{Use: "diff", Short: "展示不同提交、不同工作树之间的区别"},
		{Use: "cherry-pick", Short: "应用一些现有的提交所带来的变化"},
		{Use: "citool", Short: "git-commit的图形化替代方案"},
		{Use: "clean", Short: "从工作树中删除未被跟踪的文件"},
		{Use: "describe", Short: "根据可用的参考资料，给对象一个可读的名字"},
		{Use: "format-patch", Short: "为电子邮件提交准备补丁"},
		{Use: "gc", Short: "清理不必要的文件，优化本地资源库"},
		{Use: "gitk", Short: "Git 仓库浏览器"},
		{Use: "grep", Short: "打印复合正则的文件行"},
		{Use: "gui", Short: "Git的便携式图形界面"},
		{Use: "init", Short: "创建一个空的git仓库或者重置已经存在的仓库"},
		{Use: "log", Short: "展示提交的日志信息"},
		{Use: "merge", Short: "合并两个或更多的开发历史"},
		{Use: "mv", Short: "移动或者重命名文件、文件夹、链接"},
		{Use: "notes", Short: "添加或检查对象注释"},
		{Use: "pull", Short: "从另一个仓库或者本地分支拉取并合并"},
		{Use: "push", Short: "使用相关的对象更新远程引用"},
		{Use: "range-diff", Short: "比较两个提交范围（例如一个分支的两个版本）"},
		{Use: "rebase", Short: "在另一个基本提示上重新应用提交"},
		{Use: "reset", Short: "重置当前的HEAD为指定状态"},
		{Use: "restore", Short: "恢复工作树的文件"},
		{Use: "revert", Short: "恢复一些现有的提交"},
		{Use: "rm", Short: "从当前的工作树和索引中删除文件"},
		{Use: "show", Short: "展示各种各样的对象信息  /*支持提交、标签、文件等对象*/"},
		{Use: "stash", Short: "把修改的内容藏在一个肮脏的工作目录中"},
		{Use: "shortlog", Short: "对'git log'的输出进行总结"},
		//{Use: "status", Short: "Show the working tree status"}, NOTE: added to common suggestions as a hack to keep close to top
		{Use: "submodule", Short: "初始化、更新或检查子模块"},
		{Use: "switch", Short: "切换分支"},
		{Use: "tag", Short: "新建、列出、删除或者确认一个使用GPG签名的标签对象"},
		{Use: "worktree", Short: "管理多棵工作树"},
		{Use: "config", Short: "获取和设置版本库或全局选项"},
		{Use: "fast-import", Short: "快速Git数据导入器的后端"},
		{Use: "filter-branch", Short: "重写分支"},
		{Use: "mergetool", Short: "运行合并冲突解决工具来解决合并冲突"},
		{Use: "pack-refs", Short: "包装heads和tag以实现高效的存储库访问"},
		{Use: "prune", Short: "删除对象数据库中所有无法到达的对象"},
		{Use: "reflog", Short: "管理重新登录信息"},
		{Use: "remote", Short: "管理一组跟踪的存储库"},
		{Use: "repack", Short: "将未打包的对象打包到存储库中"},
		{Use: "replace", Short: "创建、列出、删除替换对象的参考文献"},
		{Use: "annotate", Short: "用提交信息对文件行进行注释"},
		{Use: "blame", Short: "显示文件中每行最后修改的版本和作者"},
		{Use: "count-objects", Short: "统计未打包的对象数量和它们的磁盘消耗"},
		{Use: "difftool", Short: "使用常见的差异工具显示变化"},
		{Use: "fsck", Short: "验证数据库中对象的连接性和有效性"},
		{Use: "gitweb", Short: "Git网络接口（Git仓库的网络前端）"},
		{Use: "help", Short: "显示关于Git的帮助信息"},
		{Use: "instaweb", Short: "在gitweb中即时浏览你的工作仓库"},
		{Use: "merge-tree", Short: "在不触及索引的情况下显示三方合并"},
		{Use: "rerere", Short: "重新使用记录的解决冲突的合并"},
		{Use: "show-branch", Short: "显示分支和它们的提交"},
		{Use: "verify-commit", Short: "检查提交的GPG签名"},
		{Use: "verify-tag", Short: "检查标签的GPG签名"},
		{Use: "whatchanged", Short: "显示每次提交的差异日志"},
		{Use: "archimport", Short: "将 GNU Arch 仓库导入 Git"},
		{Use: "cvsexportcommit", Short: "导出一个单一的提交到CVS签出"},
		{Use: "cvsimport", Short: "将你的数据从另一个人们爱恨交加的SCM中抢救出来"},
		{Use: "cvsserver", Short: "一个用于Git的CVS服务器仿真器"},
		{Use: "imap-send", Short: "从 stdin 发送补丁集合到 IMAP 文件夹"},
		{Use: "p4", Short: "从Perforce资源库导入并提交到Perforce资源库"},
		{Use: "fast-export", Short: "Git数据导出器"},
	}
}
